home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Authority.sea / XML Authority / Required / Samples / TMX / TMX.DTD
Encoding:
Text File  |  2000-05-03  |  7.7 KB  |  214 lines  |  [TEXT/XMLA]

  1. <!-- TMX (Translation Memory eXchange)
  2.  
  3. Known as "-//LISA OSCAR:1998//DTD for Translation Memory eXchange//EN"
  4. Use in TMX: <!DOCTYPE tmx SYSTEM "tmx11.dtd">
  5.  
  6. An SGML application conforming to:
  7. - International Standard ISO 8879 Standard Generalized Markup Language, - XML (Extensible Markup Language), W3C Recommendation
  8. All TMX element and attribute names must be in lowercase.
  9.  
  10. -->
  11. <!-- ======================================================================
  12. modifications Apr-23-1999 by YS (from Boston meeting action items)
  13.    - Added "block" to the list of segtypes allowed
  14.  
  15. modifications Aug-12-1998 by JH
  16.    - Update to Final TMX 1.1 version
  17.  
  18. modifications Jun-12-1998 by JH
  19.    - added entities amp, gt, lt, quot and apos for backwards compatibility
  20.      with SGML tools.   
  21.  
  22. modifications Jun-11-1998 by YS (from Granada meeting action items)
  23.    - srclang is now mandatory in <header>
  24.    - added creationtoolversion attribute
  25.    - replaced <bm>/<em>/<ph>/<be>/<ee> by <bsf>/<esf>/<it>/<bpt>/<ept>
  26.    - added pos and assoc attributes to <it> 
  27.  
  28. modifications Apr-10-1998 by YS
  29.    - changed n attribute in <be>, <ee>, <bm>, <em> and <ph> to i and x
  30.    - removed the match attribute from <tu>
  31.    - made various sgml syntax corrections
  32.  
  33. modifications Apr-07-1998 by JH
  34.    - changed the attribute for <tu> from id to tuid
  35.  
  36. modifications Mar-31-1998 by JH changed:
  37.    - changed match attribute to NUMBER
  38.    - note: we still get a warning from nsgmls: NUMBER or NUMBERS declared value
  39.  
  40. modifications Mar-25-1998 by YS (from Salt-Lake City meeting action items)
  41.    - added the "-//" for non-registered DTD name
  42.    - added note about lowercase requirement
  43.    - added base attribute to <ude>
  44.    - removed the <meta> element
  45.    - renamed name attribute of <prop> by type
  46.    - added <be>, <ee>, <bm>, <em> and <ph> elements (Content)
  47.    - add the match attribute to <tu>
  48.  
  49. modifications Nov-25-1997 by YS
  50.    - synchronized <TU> and <TUV> for CREATIONTOOL and DATATYPE
  51.  
  52. modifications Nov-24-1997 by YS
  53.    - corrected CODESET into O-ENCODING for the <NOTE> element
  54.  
  55. modifications Nov-22-1997 by YS (from San-Diego meeting action items)
  56.    - added <BODY>, <UDE> and <MAP/> element
  57.    - replaced NMTOKEN by CDATA for all NAME attributes
  58.    - renamed xxxUSER attributes into xxxID
  59.    - removed DIRECTIONS attribute
  60.    - renamed ORIGINAL into SRCLANG
  61.    - renamed CODESET into O-ENCODING
  62.    - added O-TMF attribute for <HEADER>
  63.    - added SEGTYPE attribute for <HEADER> and <TU>
  64.    - added ADMINLANG attribute in <HEADER>
  65.  
  66. modifications Sep-16-1997 by YS
  67.    - replaced "" by #implied for user-type and id attributes
  68.  
  69. modifications Sep-12-1997 by AKM
  70.    - added delimiters between content constituents of tu and tuv
  71.    - removed parens around "EMPTY" in definition of meta
  72.  
  73. ======================================================================= --><!ENTITY  lt   "&#60;" >
  74. <!ENTITY  amp  "&#38;" >
  75. <!ENTITY  gt   ">" >
  76. <!ENTITY  apos "'" >
  77. <!ENTITY  quot """ >
  78.  
  79. <!ENTITY % segtypes    "block|paragraph|sentence|phrase" >
  80.  
  81.  
  82. <!--     ELEM                CONTENT                -->
  83. <!--     ATTR       
  84.          NAME                TYPE           DEFAULT -->
  85.  
  86.  
  87. <!-- Base Document Element -->
  88.    <!ELEMENT tmx             (header, body) > 
  89.    <!ATTLIST tmx
  90.          version             CDATA          #REQUIRED >
  91.  
  92. <!-- Header -->
  93.    <!ELEMENT header          (note|prop|ude)* >
  94.    <!ATTLIST header
  95.          creationtool        CDATA          #REQUIRED
  96.          creationtoolversion CDATA          #REQUIRED
  97.          segtype             (%segtypes;)   #REQUIRED
  98.          o-tmf               CDATA          #REQUIRED
  99.          adminlang           CDATA          #REQUIRED
  100.          srclang             CDATA          #REQUIRED
  101.          datatype            CDATA          #REQUIRED
  102.          o-encoding          CDATA          #IMPLIED
  103.          creationdate        CDATA          #IMPLIED
  104.          creationid          CDATA          #IMPLIED
  105.          changedate          CDATA          #IMPLIED
  106.          changeid            CDATA          #IMPLIED >
  107.  
  108. <!-- Body -->
  109.    <!ELEMENT body            (tu*) >
  110.    <!-- No attributes            -->
  111.  
  112. <!-- Note -->
  113.    <!ELEMENT note            (#PCDATA) >
  114.    <!ATTLIST note
  115.          o-encoding          CDATA          #IMPLIED 
  116.          lang                CDATA          #IMPLIED >
  117.  
  118.  
  119. <!-- User-defined Encoding -->
  120.    <!ELEMENT ude             (map+) >
  121.    <!ATTLIST ude
  122.          name                CDATA          #REQUIRED
  123.          base                CDATA          #IMPLIED >
  124. <!-- Note: the base attribute is required if one or more <map>
  125.      elements in the <ude> contain a code attribute. -->
  126.  
  127. <!-- Character mapping -->
  128.    <!ELEMENT map             EMPTY >
  129.    <!ATTLIST map
  130.          unicode             CDATA          #REQUIRED
  131.          code                CDATA          #IMPLIED
  132.          ent                 CDATA          #IMPLIED
  133.          subst               CDATA          #IMPLIED >
  134.  
  135. <!-- Property -->
  136.    <!ELEMENT prop            (#PCDATA) >
  137.    <!ATTLIST prop
  138.          type                CDATA          #REQUIRED 
  139.          lang                CDATA          #IMPLIED
  140.          o-encoding          CDATA          #IMPLIED >    
  141.  
  142. <!-- Translation Unit -->
  143.    <!ELEMENT tu              ((note|prop)*, tuv+) >
  144.    <!ATTLIST tu
  145.          tuid                CDATA          #IMPLIED
  146.          o-encoding          CDATA          #IMPLIED
  147.          datatype            CDATA          #IMPLIED
  148.          usagecount          CDATA          #IMPLIED
  149.          lastusagedate       CDATA          #IMPLIED
  150.          creationtool        CDATA          #IMPLIED
  151.          creationtoolversion CDATA          #IMPLIED
  152.          creationdate        CDATA          #IMPLIED
  153.          creationid          CDATA          #IMPLIED
  154.          changedate          CDATA          #IMPLIED
  155.          segtype             (%segtypes;)   #IMPLIED
  156.          changeid            CDATA          #IMPLIED
  157.          o-tmf               CDATA          #IMPLIED
  158.          srclang             CDATA          #IMPLIED >
  159.  
  160. <!-- Translation Unit Variant -->
  161.    <!ELEMENT tuv             ((note|prop)*, seg) >
  162.    <!ATTLIST tuv
  163.          lang                CDATA          #REQUIRED
  164.          o-encoding          CDATA          #IMPLIED
  165.          datatype            CDATA          #IMPLIED
  166.          usagecount          CDATA          #IMPLIED
  167.          lastusagedate       CDATA          #IMPLIED
  168.          creationtool        CDATA          #IMPLIED
  169.          creationtoolversion CDATA          #IMPLIED
  170.          creationdate        CDATA          #IMPLIED
  171.          creationid          CDATA          #IMPLIED
  172.          changedate          CDATA          #IMPLIED
  173.          o-tmf               CDATA          #IMPLIED
  174.          changeid            CDATA          #IMPLIED >
  175.  
  176. <!-- Text -->
  177.    <!ELEMENT seg             (#PCDATA|bpt|ept|ph|ut|it|sub)* >
  178.  
  179.  
  180. <!-- Content Markup ================================================== -->
  181.  
  182.    <!ELEMENT bpt             (#PCDATA|sub)* >
  183.    <!ATTLIST bpt
  184.           i                  CDATA          #REQUIRED
  185.           x                  CDATA          #IMPLIED
  186.           type               CDATA          #IMPLIED >
  187.  
  188.    <!ELEMENT ept             (#PCDATA|sub)* >
  189.    <!ATTLIST ept
  190.           i                  CDATA          #REQUIRED >
  191.  
  192.    <!ELEMENT sub             (#PCDATA|bpt|ept|it|ph|ut)* >
  193.  
  194.    <!ELEMENT it              (#PCDATA|sub)* >
  195.    <!ATTLIST it
  196.           pos                (begin|end)    #REQUIRED
  197.           x                  CDATA          #IMPLIED
  198.           type               CDATA          #IMPLIED >
  199.  
  200.    <!ELEMENT ph              (#PCDATA|sub)* >
  201.    <!ATTLIST ph
  202.           assoc              CDATA          #IMPLIED
  203.           x                  CDATA          #IMPLIED
  204.           type               CDATA          #IMPLIED >
  205.  
  206.    <!ELEMENT ut              (#PCDATA) >
  207.    <!ATTLIST ut
  208.           x                  CDATA          #IMPLIED >
  209.  
  210.  
  211.  
  212. <!-- End -->
  213.  
  214.